import Layout from '@/layout'
const route = {
  path: '/components',
  component: Layout,
  redirect: 'noRedirect',
  name: 'Components',
  meta: { title: '组件', icon: 'icon-zujian' },
  children: [
    {
      path: 'rich-text',
      name: 'richText',
      component: () => import('@/views/components-demo/rich-text'),
      meta: { title: '富文本编辑器' }
    },
    {
      path: 'from',
      name: 'from',
      component: () => import('@/views/components-demo/from'),
      meta: { title: '表单' }
    },
    {
      path: 'cascade',
      name: 'cascade',
      component: () => import('@/views/components-demo/cascade'),
      meta: { title: '级联选择器' }
    },
    {
      path: 'tree',
      name: 'tree',
      component: () => import('@/views/components-demo/tree'),
      meta: { title: '树形控件' }
    }
    // {
    //   path: 'code-editor',
    //   name: 'codeEditor',
    //   component: () => import('@/views/components-demo/code-editor'),
    //   meta: { title: '代码编辑器' }
    // }
  ]
}
export default route
